﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/MainTemplate.Master" AutoEventWireup="true" CodeBehind="UserTransactionsPage.aspx.cs" Inherits="AlexandriaPressWebsite.MasterPages.UserPages.UserTransactionsPage" %>
<asp:Content ID="Content1" ContentPlaceHolderID="mainDoc" runat="server">
<h1>My Transactions</h1>
<asp:GridView ID="transGridView1" runat="server" AutoGenerateColumns="False" 
        CssClass="grid">
            <Columns>
            
            <asp:TemplateField HeaderText = "Book Cover">
                <ItemTemplate>
                    <img alt="previewOfCover" src="<%# Eval("BookCover") %>" />
                </ItemTemplate>                
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText = "Title">
                <ItemTemplate>
                    <asp:Label ID="Title" runat="server" Text='<%# Eval("Title") %>'></asp:Label>
                </ItemTemplate>                
            </asp:TemplateField>
            
            <asp:TemplateField HeaderText = "Author">
                <ItemTemplate>        
                    <asp:Label ID="Author" runat="server" Text='<%# Eval("Author") %>'></asp:Label>
                 </ItemTemplate>                
            </asp:TemplateField>
            
             <asp:TemplateField HeaderText = "Genre">
                <ItemTemplate>        
                    <asp:Label ID="Genre" runat="server" Text='<%# Eval("Genre") %>'></asp:Label>
                 </ItemTemplate>                
            </asp:TemplateField>
            
             <asp:TemplateField HeaderText = "Quantity">
                <ItemTemplate>        
                    <asp:Label ID="Quantity" runat="server" Text='<%# Eval("Quantity") %>'></asp:Label>
                 </ItemTemplate>                
            </asp:TemplateField> 
            
             <asp:TemplateField HeaderText = "Price Per Unit">
                <ItemTemplate>        
                    <asp:Label ID="PricePerUnit" runat="server" Text='<%# Eval("PricePerUnit") %>'></asp:Label>                    
                </ItemTemplate>                   
            </asp:TemplateField> 
            
            <asp:TemplateField HeaderText = "Date of Transaction">
                <ItemTemplate>        
                    <asp:Label ID="DateOfTransaction" runat="server" Text='<%# Eval("DateOfTransaction") %>'></asp:Label>                    
                </ItemTemplate>                   
            </asp:TemplateField> 
                       
            </Columns>
            <EmptyDataTemplate>
                No transactions made.
            </EmptyDataTemplate>
        </asp:GridView>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="formDoc" runat="server">
</asp:Content>
